import 'package:flutter/material.dart';

class Tab2Screen extends StatelessWidget {
  const Tab2Screen({super.key});

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Flexible(
            child: Container(
          color: Colors.blue[100],
          child: const Center(
            child: Text(
              'Flexible Content Area',
              style: TextStyle(fontSize: 24),
            ),
          ),
        )),
        Expanded(
            flex: 2,
            child: GridView.builder(
                gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
                    crossAxisCount: 2),
                itemCount: 8,
                itemBuilder: (context, index) => Card(
                      child: Column(
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: [
                          const Icon(Icons.star, size: 40),
                          Text('Item $index'),
                        ],
                      ),
                    )))
      ],
    );
  }
}
